<{if $goodsData}>
<input type="hidden" class="action-pagedata" value="{total:<{$total}>, pagecurrent:<{$page}>, pagetotal:<{$pagetotal}>}">
<ul class="pt-list">
<{foreach from=$goodsData key=key item=goods_row}>
  <li class="pt-h-item c-fix u-product">
      <input type="hidden" value="<{$goods_row.unit}>" class="u-unit">
      <input type="hidden" value="<{$goods_row.min_buy}>" class="u-min_buy">
      <input type="hidden" value="<{$goods_row.good_standard}>" class="good_standard">
    <div data-href="<{$goods_row.products.product_id}>" class="pt-h-link">
        <a href="<{link app=b2c ctl=wap_product arg0=$goods_row.products.product_id}>">
            <div href="<{$goods_row.image_default_id|storager:'m'}>" class="pt-h-img"><img src="<{$goods_row.image_default_id|storager:'m'}>"></div>
        </a>
        <div class=" u-info">
            <a href="<{link app=b2c ctl=wap_product arg0=$goods_row.products.product_id}>" >
                <div class="u-name" style="color:#000000">
                    <{if !isset($goods_row.prepare) && $goods_row.prepare.promotion_type != 'prepare'}>
                    <p><{$goods_row.name|cut:'90'}></p>
                    <{/if}>
                    <!--预售商品判断-->
                    <{if $goods_row.prepare.promotion_type == 'prepare'}>
                    <{$goods_row.name|cut:'90'}>&nbsp;<span style="color:#fff;background:red;font-weight:bold;">预售</span>
                    <{/if}>
                   
                     
                    <!-- 商品标签 begin-->
                    <p class="">
                        <{if $goods_row.tags && $gallery_display_tag_goods == 'true'}>
                        <{foreach from=$goods_row.tags item=tags}>
                        <{if $tags.params.tag_showOnIndex == 'on'}>
                         <{if $goods_row.products.current_promotion.goods}>
                         <{foreach from=$goods_row.products.current_promotion.goods item=grule}>
                        <{if $grule.use == 'true'}>
                        <span class="text-tag-<{$tags.params.pic_loc}> u-label" style="background:#f48451;color:#fff;"><{$tags.tag_name}></span>
                        <{else}>
                        <span class="text-tag-<{$tags.params.pic_loc}> u-label" style="background:#f48451;color:#fff;">正常</span>
                        <{/if}>
                        <{/foreach}>
                        <{else}>
                         <span class="text-tag-<{$tags.params.pic_loc}> u-label" style="background:#f48451;color:#fff;"><{$tags.tag_name}></span>
                         <{/if}>
                        <{else}>
                        <span class="text-tag-<{$tags.params.pic_loc}> u-label" style="background:#f48451;color:#fff;">正常</span>
                        <{/if}>
                        <{/foreach}>
                        <{else}>
                        <span class="text-tag-<{$tags.params.pic_loc}>" style="background:#f48451;color:#fff;">正常</span>
                        <{/if}>
                        <!-- 商品要货规格 begin-->
                        <span class="text-tag-<{$tags.params.pic_loc}>" style="">要货规格：<{$goods_row.good_standard}></span>
                        <!-- 商品要货规格 end-->
                    </p>
                
                  
                </div>
            </a>
            <div class="u-price" >
            <!-- 判断用户是否登陆，如果没有登陆，那么价格不显示 -->
            <{if $check_login != 'nologin'}>
                <p style="font-size: .2rem ;width: 100%">
                     <span >原价：<del ><{$goods_row.products.mktprice|cur_odr}></del>
                    </span>
                    <span style="float: right;">建议零售价：<{$goods_row.products.cost|cur_odr}></span>
                </p>
                <p style="font-size: .2rem ;width: 100%">
                     <span >货号：<{$goods_row.bn}></span>
                </p>  
                <p style="font-size: .2rem ;width: 100%">
                    <span>条码：
                    <{if $goods_row.minimum.add.keyword}>
                         <{$goods_row.minimum.add.keyword}>
                    <{else}>
                         <{$goods_row.keyword}>
                    <{/if}>
                    </span>
                </p>
            <{/if}>
                <{foreach from=$goods_row.products.current_promotion.order item=promotion}>
                <label class="u-label"><{$promotion.name}></label>
                <{/foreach}>
                <!-- 商品促销名称 -->
                <{foreach from=$goods_row.products.current_promotion.goods item=grule}>
                <{if $grule.use == 'true'}>
                <label class="u-label"><{$grule.name}></label>
                <{/if}>
                <{/foreach}>
            </div>
            <p class="u-setNum">
               <!--  <span style="color:#FF0000;float: left;font-size: .3rem;line-height: 0.54rem"><{$goods_row.products.price|cur_odr}></span> 隐藏供货价改为显现订货价-->
                <span style="color:#FF0000;float: left;font-size: .3rem;line-height: 0.54rem">
                  <!-- 判断用户是否登陆，如果没有登陆，那么价格不显示 -->
                  <{if $check_login=='nologin'}>
                    
                  <{else}>
                    <{if $goods_row.mlv_price1}>
                      <{$goods_row.mlv_price1|cur_odr}>
                    <{else}>
                      <{if $goods_row.mlv_price2}>
                        <{$goods_row.mlv_price2|cur_odr}>
                      <{else}>
                        <{$goods_row.products.mlv_price|cur_odr}>
                      <{/if}>
                    <{/if}>
                  <{/if}>
                </span>
               
                 <{if $goods_row.products.store == 0}>
                 <span class="text-tag-<{$tags.params.pic_loc}>" style="background:#CC0001;color:#fff;">商品缺货中</span>
                 <{else}>
                    <span class="u-btn u-dec" onclick="addCart(this)">-</span>
                    <span class="u-num" onclick="showInput(this)"><{if $goods_row.quantitys}><{$goods_row.quantitys}><{else}>0<{/if}></span>
                    <span class="u-btn u-add" onclick="addCart(this)">+</span>
                 <{/if}>
            </p>
    </div>
    </div>
  </li>
  <{/foreach}>
</ul>
<{wap_pagers ajax=true data=$pager}>
<{else}>
<div class="no-data">
    <p class="warn">抱歉！没有符合条件的商品</p>
    <p>您可以更改关键字重新查找</p>
</div>
<{/if}>
